package com.gph.saviorframework.fastdfs.service.impl;

import java.io.IOException;
import java.io.InputStream;

import org.apache.commons.io.IOUtils;

import com.gph.saviorframework.fastdfs.service.IFdfsFileInputStreamHandler;

public class ByteArrayFdfsFileInputStreamHandler implements
		IFdfsFileInputStreamHandler<byte[]> {

	public byte[] deal(InputStream ins) throws IOException {
		return IOUtils.toByteArray(ins);
	}
}
